package com.pxxy.mall.auth.feign;

import com.pxxy.common.utils.R;
import com.pxxy.mall.auth.vo.UserLoginVo;
import com.pxxy.mall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author zhangjj
 * @since 2024/2/5
 */
@FeignClient("mall-member")
public interface MemberApi {

    /**
     * 注册
     * @param userRegistVo
     * @return
     */
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo userRegistVo);


    /**
     * 登入
     *
     * @param userLoginVo
     * @return
     */
    @PostMapping("/member/member/login")
     R login(@RequestBody UserLoginVo userLoginVo);

}
